package com.zk.qqrobot;

import com.alibaba.fastjson.JSON;
import com.zk.qqrobot.util.telnet.JsonResult;
import com.zk.qqrobot.util.telnet.PTUtil;
import org.apache.commons.codec.binary.Base64;

import java.io.UnsupportedEncodingException;

public class Test {
    public static void main(String[] args) throws UnsupportedEncodingException {
//        JsonResult jsonResult = PTUtil.telnetResult("46.29.162.169", 8021, 3000);
//        System.out.println(JSON.toJSONString(jsonResult));

        String ss = "aGVpa2VqaWxhaWxhLnh5ejoxMDAwMTpvcmlnaW46YWVzLTI1Ni1jZmI6cGxhaW46TVRBd01ERS8_b2Jmc3BhcmFtPSZyZW1hcmtzPVctYWpnT21xak9pS2d1ZUN1VjNtbTdUbWxyRG1pSkRsaXA4Jmdyb3VwPTZidVI1NmVSNW9xQTVwMmw1Wldt";

        byte[] bytes = Base64.decodeBase64(ss);
        String ssr = new String(bytes,"UTF-8");
        System.out.println(ssr);
        String[] split = ssr.split(":");


        String s = new String("W-ajgOmqjOiKgueCuV3mm7TmlrDmiJDlip8&group=6buR56eR5oqA5p2l5ZWm".getBytes(),"UTF-8");

        System.out.println(s);

    }
}
